package com.itheima.mybatis.pojo;

/**
 * 用户实体类
 */
public class User {
    private Integer age;//属性名必须与请求参数名相同
    private String name;//属性名必须与请求参数名相同
    private Address address;//属性名必须与请求参数名一级参数名相同

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", address=" + address +
                '}';
    }
}
